< prev index next >

src/java.base/share/classes/jdk/internal/math/FloatingDecimal.java

Print this page
*** 981,11 ***
                      return new BinaryToASCIIBuffer();
                  }
              };
  
      private static BinaryToASCIIBuffer getBinaryToASCIIBuffer() {
!         return threadLocalBinaryToASCIIBuffer.get();
      }
  
      /**
       * A converter which can process an ASCII <code>String</code> representation
       * of a single or double precision floating point value into a
--- 981,15 ---
                      return new BinaryToASCIIBuffer();
                  }
              };
  
      private static BinaryToASCIIBuffer getBinaryToASCIIBuffer() {
!         if (Thread.currentThread().isVirtual()) {
+             return new BinaryToASCIIBuffer();
+         } else {
+             return threadLocalBinaryToASCIIBuffer.get();
+         }
      }
  
      /**
       * A converter which can process an ASCII <code>String</code> representation
       * of a single or double precision floating point value into a
< prev index next >