(Yet unpushed) JDK-8224193 uncovered a bug in Exceptions::log_exception(). Stream object argument is handed down by value:
void Exceptions::log_exception(Handle exception, stringStream tempst);
which creates a copy which shares the internal backing buffer with the original one frame upstairs. Worked out of accident before when backing buffer was allocated in resource area, but since withJDK-8224193, it is allocated via C-heap which leads to a double free.
void Exceptions::log_exception(Handle exception, stringStream tempst);
which creates a copy which shares the internal backing buffer with the original one frame upstairs. Worked out of accident before when backing buffer was allocated in resource area, but since with
- duplicates
-
JDK-8224487 outputStream should not be copyable
-
- Resolved
-
- relates to
-
JDK-8224487 outputStream should not be copyable
-
- Resolved
-