comparison src/share/vm/code/debugInfoRec.cpp @ 15100:fe11cb3c7882

enable sharing of debug info all the time
author Tom Rodriguez <tom.rodriguez@oracle.com>
date Mon, 14 Apr 2014 15:07:05 -0700
parents cefad50507d8
children 8638307944be
comparison
equal deleted inserted replaced
15099:0fab2ac29847 15100:fe11cb3c7882
233 } dir_stats; 233 } dir_stats;
234 #endif //PRODUCT 234 #endif //PRODUCT
235 235
236 236
237 int DebugInformationRecorder::find_sharable_decode_offset(int stream_offset) { 237 int DebugInformationRecorder::find_sharable_decode_offset(int stream_offset) {
238 // It's always a space win to share and Graal generates quite a bit
239 // of scopes data so always enable the sharing logic with Graal.
240 // Presumably this is disabled in regular HotSpot because it makes
241 // recording more expensive?
242 #ifndef GRAAL
238 // Only pull this trick if non-safepoint recording 243 // Only pull this trick if non-safepoint recording
239 // is enabled, for now. 244 // is enabled, for now.
240 if (!recording_non_safepoints()) 245 if (!recording_non_safepoints())
241 return serialized_null; 246 return serialized_null;
247 #endif
242 248
243 NOT_PRODUCT(++dir_stats.chunks_queried); 249 NOT_PRODUCT(++dir_stats.chunks_queried);
244 int stream_length = stream()->position() - stream_offset; 250 int stream_length = stream()->position() - stream_offset;
245 assert(stream_offset != serialized_null, "should not be null"); 251 assert(stream_offset != serialized_null, "should not be null");
246 assert(stream_length != 0, "should not be empty"); 252 assert(stream_length != 0, "should not be empty");