--- old/test/hotspot/jtreg/vmTestbase/nsk/monitoring/share/server/ServerThreadMXBeanNew.java 2019-09-19 06:08:43.000000000 -0700 +++ new/test/hotspot/jtreg/vmTestbase/nsk/monitoring/share/server/ServerThreadMXBeanNew.java 2019-09-19 06:08:42.000000000 -0700 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2011, 2018, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2011, 2019, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -59,6 +59,12 @@ new String[] { long.class.getName() }); } + public long getCurrentThreadAllocatedBytes() { + return (Long) invokeMethod("getCurrentThreadAllocatedBytes", + new Object[] { }, + new String[] { }); + } + public void setThreadAllocatedMemoryEnabled(boolean enabled) { setBooleanAttribute("ThreadAllocatedMemoryEnabled", enabled); }