mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-22 03:54:33 +02:00
6700789: G1: Enable use of compressed oops with G1 heaps
Modifications to G1 so as to allow the use of compressed oops. Reviewed-by: apetrusenko, coleenp, jmasa, kvn, never, phh, tonyp
This commit is contained in:
parent
50d7db1805
commit
075c1335cb
58 changed files with 1233 additions and 1175 deletions
|
@ -23,10 +23,10 @@
|
|||
*/
|
||||
|
||||
// Inline functions of BarrierSet, which de-virtualize certain
|
||||
// performance-critical calls when when the barrier is the most common
|
||||
// performance-critical calls when the barrier is the most common
|
||||
// card-table kind.
|
||||
|
||||
void BarrierSet::write_ref_field_pre(void* field, oop new_val) {
|
||||
template <class T> void BarrierSet::write_ref_field_pre(T* field, oop new_val) {
|
||||
if (kind() == CardTableModRef) {
|
||||
((CardTableModRefBS*)this)->inline_write_ref_field_pre(field, new_val);
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue