Index: vm/isolate.cc |
=================================================================== |
--- vm/isolate.cc (revision 3563) |
+++ vm/isolate.cc (working copy) |
@@ -101,6 +101,7 @@ |
source_name, message->reply_port(), name(), message->dest_port()); |
} |
message_queue()->Enqueue(message); |
+ ASSERT(message->priority() < Message::kOOBPriority); |
if (message->priority() >= Message::kOOBPriority) { |
// Handle out of band messages even if the isolate is busy. |
ScheduleInterrupts(Isolate::kMessageInterrupt); |
@@ -203,7 +204,7 @@ |
mutex_->Lock(); |
ASSERT((interrupt_bits & ~kInterruptsMask) == 0); // Must fit in mask. |
if (stack_limit_ == saved_stack_limit_) { |
- stack_limit_ = ~static_cast<uword>(0) & ~kInterruptsMask; |
+ stack_limit_ = (~static_cast<uword>(0)) & ~kInterruptsMask; |
} |
stack_limit_ |= interrupt_bits; |
mutex_->Unlock(); |