comparison src/share/vm/code/debugInfoRec.cpp @ 15433:8638307944be

Add flag to always enable debug info sharing (true ifdef GRAAL)
author Gilles Duboscq <duboscq@ssw.jku.at>
date Tue, 29 Apr 2014 16:11:54 +0200
parents fe11cb3c7882
children b888ded3ee42
comparison
equal deleted inserted replaced
15432:62f455eba8c5 15433:8638307944be
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 238 if (FLAG_IS_DEFAULT(ShareDebugInfo)) {
239 // of scopes data so always enable the sharing logic with Graal. 239 if (!ShareDebugInfo && !recording_non_safepoints()) {
240 // Presumably this is disabled in regular HotSpot because it makes 240 return serialized_null;
241 // recording more expensive? 241 }
242 #ifndef GRAAL 242 } else if (!ShareDebugInfo) {
243 // Only pull this trick if non-safepoint recording
244 // is enabled, for now.
245 if (!recording_non_safepoints())
246 return serialized_null; 243 return serialized_null;
247 #endif 244 }
248 245
249 NOT_PRODUCT(++dir_stats.chunks_queried); 246 NOT_PRODUCT(++dir_stats.chunks_queried);
250 int stream_length = stream()->position() - stream_offset; 247 int stream_length = stream()->position() - stream_offset;
251 assert(stream_offset != serialized_null, "should not be null"); 248 assert(stream_offset != serialized_null, "should not be null");
252 assert(stream_length != 0, "should not be empty"); 249 assert(stream_length != 0, "should not be empty");