equal
deleted
inserted
replaced
223 { |
223 { |
224 // cannot use ThreadInVMfromNative here since in case of JVMCI compiler, |
224 // cannot use ThreadInVMfromNative here since in case of JVMCI compiler, |
225 // thread is already in VM state. |
225 // thread is already in VM state. |
226 ThreadInVMfromUnknown tiv; |
226 ThreadInVMfromUnknown tiv; |
227 assert(JNIHandles::resolve(value()) == NULL || |
227 assert(JNIHandles::resolve(value()) == NULL || |
228 Universe::heap()->is_in_reserved(JNIHandles::resolve(value())), |
228 Universe::heap()->is_in(JNIHandles::resolve(value())), |
229 "Should be in heap"); |
229 "Should be in heap"); |
230 } |
230 } |
231 #endif |
231 #endif |
232 stream->write_int(CONSTANT_OOP_CODE); |
232 stream->write_int(CONSTANT_OOP_CODE); |
233 stream->write_handle(value()); |
233 stream->write_handle(value()); |
244 // ConstantOopReadValue |
244 // ConstantOopReadValue |
245 |
245 |
246 ConstantOopReadValue::ConstantOopReadValue(DebugInfoReadStream* stream) { |
246 ConstantOopReadValue::ConstantOopReadValue(DebugInfoReadStream* stream) { |
247 _value = Handle(Thread::current(), stream->read_oop()); |
247 _value = Handle(Thread::current(), stream->read_oop()); |
248 assert(_value() == NULL || |
248 assert(_value() == NULL || |
249 Universe::heap()->is_in_reserved(_value()), "Should be in heap"); |
249 Universe::heap()->is_in(_value()), "Should be in heap"); |
250 } |
250 } |
251 |
251 |
252 void ConstantOopReadValue::write_on(DebugInfoWriteStream* stream) { |
252 void ConstantOopReadValue::write_on(DebugInfoWriteStream* stream) { |
253 ShouldNotReachHere(); |
253 ShouldNotReachHere(); |
254 } |
254 } |