# HG changeset patch # User Christos Kotselidis # Date 1370346884 -7200 # Node ID 477fb9a9a06d50d0a33cfb717dbb19de5725f353 # Parent cf071af51d94b05d3b0f0bfeb0e98377533a7612 Delegate compressed oop arguments from HotSpot to Graal diff -r cf071af51d94 -r 477fb9a9a06d graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/HotSpotVMConfig.java --- a/graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/HotSpotVMConfig.java Tue Jun 04 13:46:58 2013 +0200 +++ b/graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/HotSpotVMConfig.java Tue Jun 04 13:54:44 2013 +0200 @@ -50,6 +50,13 @@ public boolean useAESIntrinsics; public boolean useG1GC; + // Compressed Oops related values. + public boolean useCompressedOops; + public boolean useCompressedKlassPointers; + public long narrowOopBase; + public int narrowOopShift; + public int logMinObjAlignment; + // CPU capabilities public int useSSE; public int useAVX; diff -r cf071af51d94 -r 477fb9a9a06d make/build-graal.xml --- a/make/build-graal.xml Tue Jun 04 13:46:58 2013 +0200 +++ b/make/build-graal.xml Tue Jun 04 13:54:44 2013 +0200 @@ -93,15 +93,6 @@ - - - - - - - - - diff -r cf071af51d94 -r 477fb9a9a06d src/share/vm/graal/graalCompilerToVM.cpp --- a/src/share/vm/graal/graalCompilerToVM.cpp Tue Jun 04 13:46:58 2013 +0200 +++ b/src/share/vm/graal/graalCompilerToVM.cpp Tue Jun 04 13:54:44 2013 +0200 @@ -831,6 +831,12 @@ set_int("vmIntrinsicLinkToSpecial", vmIntrinsics::_linkToSpecial); set_int("vmIntrinsicLinkToInterface", vmIntrinsics::_linkToInterface); + set_boolean("useCompressedOops", UseCompressedOops); + set_boolean("useCompressedKlassPointers", UseCompressedKlassPointers); + set_address("narrowOopBase", Universe::narrow_oop_base()); + set_int("narrowOopShift", Universe::narrow_oop_shift()); + set_int("logMinObjAlignment", LogMinObjAlignmentInBytes); + set_int("g1CardQueueIndexOffset", in_bytes(JavaThread::dirty_card_queue_offset() + PtrQueue::byte_offset_of_index())); set_int("g1CardQueueBufferOffset", in_bytes(JavaThread::dirty_card_queue_offset() + PtrQueue::byte_offset_of_buf())); set_int("logOfHRGrainBytes", HeapRegion::LogOfHRGrainBytes);