Mercurial > hg > graal-jvmci-8
comparison src/cpu/sparc/vm/interpreter_sparc.cpp @ 3249:e1162778c1c8
7009266: G1: assert(obj->is_oop_or_null(true )) failed: Error
Summary: A referent object that is only weakly reachable at the start of concurrent marking but is re-attached to the strongly reachable object graph during marking may not be marked as live. This can cause the reference object to be processed prematurely and leave dangling pointers to the referent object. Implement a read barrier for the java.lang.ref.Reference::referent field by intrinsifying the Reference.get() method, and intercepting accesses though JNI, reflection, and Unsafe, so that when a non-null referent object is read it is also logged in an SATB buffer.
Reviewed-by: kvn, iveresov, never, tonyp, dholmes
author | johnc |
---|---|
date | Thu, 07 Apr 2011 09:53:20 -0700 |
parents | 8033953d67ff |
children | 92add02409c9 |
comparison
equal
deleted
inserted
replaced
3248:e6beb62de02d | 3249:e1162778c1c8 |
---|---|
405 case Interpreter::java_lang_math_tan : break; | 405 case Interpreter::java_lang_math_tan : break; |
406 case Interpreter::java_lang_math_sqrt : break; | 406 case Interpreter::java_lang_math_sqrt : break; |
407 case Interpreter::java_lang_math_abs : break; | 407 case Interpreter::java_lang_math_abs : break; |
408 case Interpreter::java_lang_math_log : break; | 408 case Interpreter::java_lang_math_log : break; |
409 case Interpreter::java_lang_math_log10 : break; | 409 case Interpreter::java_lang_math_log10 : break; |
410 case Interpreter::java_lang_ref_reference_get | |
411 : entry_point = ((InterpreterGenerator*)this)->generate_Reference_get_entry(); break; | |
410 default : ShouldNotReachHere(); break; | 412 default : ShouldNotReachHere(); break; |
411 } | 413 } |
412 | 414 |
413 if (entry_point) return entry_point; | 415 if (entry_point) return entry_point; |
414 | 416 |