This is an automated email from the ASF dual-hosted git repository.

xiangfu pushed a commit to branch remove_misc_cleaner_ref
in repository https://gitbox.apache.org/repos/asf/incubator-pinot.git

commit ed0bfc0aeb13b562433b97aa6ff0682a971ca927
Author: Xiang Fu <[email protected]>
AuthorDate: Tue Sep 24 08:53:54 2019 -0700

    Remove import of sun.misc.Cleaner to make code compatible with jdk11
---
 .../java/org/apache/pinot/core/segment/memory/PinotByteBuffer.java   | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git 
a/pinot-core/src/main/java/org/apache/pinot/core/segment/memory/PinotByteBuffer.java
 
b/pinot-core/src/main/java/org/apache/pinot/core/segment/memory/PinotByteBuffer.java
index 956dbc2..ebcafd3 100644
--- 
a/pinot-core/src/main/java/org/apache/pinot/core/segment/memory/PinotByteBuffer.java
+++ 
b/pinot-core/src/main/java/org/apache/pinot/core/segment/memory/PinotByteBuffer.java
@@ -328,9 +328,8 @@ public class PinotByteBuffer extends PinotDataBuffer {
 
   @Override
   protected void release() {
-    Cleaner cleaner = ((DirectBuffer) _buffer).cleaner();
-    if (cleaner != null) {
-      cleaner.clean();
+    if ( ((DirectBuffer) _buffer).cleaner() != null) {
+      ((DirectBuffer) _buffer).cleaner().clean();
     }
   }
 }


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to