Mercurial > hg > graal-jvmci-8
comparison src/cpu/sparc/vm/assembler_sparc.hpp @ 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 | 28bf941f445e |
children | f7d55ea6ee56 |
comparison
equal
deleted
inserted
replaced
3248:e6beb62de02d | 3249:e1162778c1c8 |
---|---|
2208 void card_table_write(jbyte* byte_map_base, Register tmp, Register obj); | 2208 void card_table_write(jbyte* byte_map_base, Register tmp, Register obj); |
2209 | 2209 |
2210 void card_write_barrier_post(Register store_addr, Register new_val, Register tmp); | 2210 void card_write_barrier_post(Register store_addr, Register new_val, Register tmp); |
2211 | 2211 |
2212 #ifndef SERIALGC | 2212 #ifndef SERIALGC |
2213 // Array store and offset | 2213 // General G1 pre-barrier generator. |
2214 void g1_write_barrier_pre(Register obj, Register index, int offset, Register tmp, bool preserve_o_regs); | 2214 void g1_write_barrier_pre(Register obj, Register index, int offset, Register pre_val, Register tmp, bool preserve_o_regs); |
2215 | 2215 |
2216 // General G1 post-barrier generator | |
2216 void g1_write_barrier_post(Register store_addr, Register new_val, Register tmp); | 2217 void g1_write_barrier_post(Register store_addr, Register new_val, Register tmp); |
2217 | |
2218 // May do filtering, depending on the boolean arguments. | |
2219 void g1_card_table_write(jbyte* byte_map_base, | |
2220 Register tmp, Register obj, Register new_val, | |
2221 bool region_filter, bool null_filter); | |
2222 #endif // SERIALGC | 2218 #endif // SERIALGC |
2223 | 2219 |
2224 // pushes double TOS element of FPU stack on CPU stack; pops from FPU stack | 2220 // pushes double TOS element of FPU stack on CPU stack; pops from FPU stack |
2225 void push_fTOS(); | 2221 void push_fTOS(); |
2226 | 2222 |