JDK-8257039: Memory allocated by GenericTaskQueue::_array_allocator may be double freed

wattsun(孙宇) wattsun at tencent.com
Wed Nov 25 10:14:49 UTC 2020


Dear All,

     may I hava this small bug fix to review?

     Bug: https://bugs.openjdk.java.net/browse/JDK-8257039





the diff:



diff -r 83661fdee9f0 src/share/vm/utilities/taskqueue.hpp

--- a/src/share/vm/utilities/taskqueue.hpp      Wed Nov 18 06:55:35 2020 +0000

+++ b/src/share/vm/utilities/taskqueue.hpp      Wed Nov 25 18:10:28 2020 +0800

@@ -314,7 +314,7 @@

 };



 template<class E, MEMFLAGS F, unsigned int N>

-GenericTaskQueue<E, F, N>::GenericTaskQueue() {

+GenericTaskQueue<E, F, N>::GenericTaskQueue() : _array_allocator(false) {

   assert(sizeof(Age) == sizeof(size_t), "Depends on this.");

 }





Thanks!

watt



More information about the jdk8u-dev mailing list