hotspot/src/share/vm/gc/shared/gcTraceSend.cpp
changeset 39980 dcef6760667c
parent 36384 b0b41336a9a8
child 40664 1ec65b303bb7
equal deleted inserted replaced
39979:b17e445924da 39980:dcef6760667c
   276   EventGCG1BasicIHOP evt;
   276   EventGCG1BasicIHOP evt;
   277   if (evt.should_commit()) {
   277   if (evt.should_commit()) {
   278     evt.set_gcId(GCId::current());
   278     evt.set_gcId(GCId::current());
   279     evt.set_threshold(threshold);
   279     evt.set_threshold(threshold);
   280     evt.set_targetOccupancy(target_occupancy);
   280     evt.set_targetOccupancy(target_occupancy);
   281     evt.set_thresholdPercentage(target_occupancy > 0 ? (threshold * 100 / target_occupancy) : 0);
   281     evt.set_thresholdPercentage(target_occupancy > 0 ? ((double)threshold / target_occupancy) : 0.0);
   282     evt.set_currentOccupancy(current_occupancy);
   282     evt.set_currentOccupancy(current_occupancy);
   283     evt.set_lastAllocationSize(last_allocation_size);
   283     evt.set_lastAllocationSize(last_allocation_size);
   284     evt.set_lastAllocationDuration(last_allocation_duration);
   284     evt.set_lastAllocationDuration(last_allocation_duration);
   285     evt.set_lastAllocationRate(last_allocation_duration != 0.0 ? last_allocation_size / last_allocation_duration : 0.0);
   285     evt.set_lastAllocationRate(last_allocation_duration != 0.0 ? last_allocation_size / last_allocation_duration : 0.0);
   286     evt.set_lastMarkingLength(last_marking_length);
   286     evt.set_lastMarkingLength(last_marking_length);
   297                                                 bool prediction_active) {
   297                                                 bool prediction_active) {
   298   EventGCG1AdaptiveIHOP evt;
   298   EventGCG1AdaptiveIHOP evt;
   299   if (evt.should_commit()) {
   299   if (evt.should_commit()) {
   300     evt.set_gcId(GCId::current());
   300     evt.set_gcId(GCId::current());
   301     evt.set_threshold(threshold);
   301     evt.set_threshold(threshold);
   302     evt.set_thresholdPercentage(internal_target_occupancy > 0 ? (threshold * 100 / internal_target_occupancy) : 0);
   302     evt.set_thresholdPercentage(internal_target_occupancy > 0 ? ((double)threshold / internal_target_occupancy) : 0.0);
   303     evt.set_internalTargetOccupancy(internal_target_occupancy);
   303     evt.set_internalTargetOccupancy(internal_target_occupancy);
   304     evt.set_currentOccupancy(current_occupancy);
   304     evt.set_currentOccupancy(current_occupancy);
   305     evt.set_additionalBufferSize(additional_buffer_size);
   305     evt.set_additionalBufferSize(additional_buffer_size);
   306     evt.set_predictedAllocationRate(predicted_allocation_rate);
   306     evt.set_predictedAllocationRate(predicted_allocation_rate);
   307     evt.set_predictedMarkingLength(predicted_marking_length);
   307     evt.set_predictedMarkingLength(predicted_marking_length);