equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2003, 2018, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2003, 2019, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. Oracle designates this |
7 * published by the Free Software Foundation. Oracle designates this |
343 bufferPools = new ArrayList<>(2); |
343 bufferPools = new ArrayList<>(2); |
344 bufferPools.add(createBufferPoolMXBean(SharedSecrets.getJavaNioAccess() |
344 bufferPools.add(createBufferPoolMXBean(SharedSecrets.getJavaNioAccess() |
345 .getDirectBufferPool())); |
345 .getDirectBufferPool())); |
346 bufferPools.add(createBufferPoolMXBean(sun.nio.ch.FileChannelImpl |
346 bufferPools.add(createBufferPoolMXBean(sun.nio.ch.FileChannelImpl |
347 .getMappedBufferPool())); |
347 .getMappedBufferPool())); |
|
348 bufferPools.add(createBufferPoolMXBean(sun.nio.ch.FileChannelImpl |
|
349 .getSyncMappedBufferPool())); |
348 } |
350 } |
349 return bufferPools; |
351 return bufferPools; |
350 } |
352 } |
351 |
353 |
352 private final static String BUFFER_POOL_MXBEAN_NAME = "java.nio:type=BufferPool"; |
354 private final static String BUFFER_POOL_MXBEAN_NAME = "java.nio:type=BufferPool"; |