Skip to content

Commit

Permalink
No longer avoid init of metrics in OperatingSystemImpl.
Browse files Browse the repository at this point in the history
  • Loading branch information
fniephaus committed Aug 28, 2023
1 parent 8362a70 commit ea0f7c4
Showing 1 changed file with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,17 +24,14 @@
*/
package com.oracle.svm.core.jdk.management;

import com.oracle.svm.core.SubstrateUtil;
import com.oracle.svm.core.annotate.Substitute;
import com.oracle.svm.core.annotate.Alias;
import com.oracle.svm.core.annotate.TargetClass;

import sun.management.VMManagement;

@TargetClass(className = "com.sun.management.internal.OperatingSystemImpl")
final class Target_com_sun_management_internal_OperatingSystemImpl {
@Substitute
@Alias
Target_com_sun_management_internal_OperatingSystemImpl(@SuppressWarnings("unused") VMManagement vm) {
/* Workaround until we enable container support (GR-37365). */
SubstrateUtil.cast(this, Target_sun_management_BaseOperatingSystemImpl.class).loadavg = new double[1];
}
}

0 comments on commit ea0f7c4

Please sign in to comment.