RFR: 8284161: Implementation of Virtual Threads (Preview) [v3]
Ron Pressler
rpressler at openjdk.java.net
Fri Apr 22 08:49:46 UTC 2022
On Sun, 17 Apr 2022 04:57:34 GMT, Jaikiran Pai <jpai at openjdk.org> wrote:
>> Alan Bateman has updated the pull request with a new target base due to a merge or a rebase. The incremental webrev excludes the unrelated changes brought in by the merge/rebase. The pull request contains five additional commits since the last revision:
>>
>> - Refresh
>> - Refresh
>> - Merge with jdk-19+18
>> - Refresh
>> - Initial push
>
> src/java.base/share/classes/java/lang/StackTraceElement.java line 556:
>
>> 554: }
>> 555:
>> 556: static StackTraceElement[] of(StackTraceElement[] stackTrace) {
>
> Is it intentional that this method is returning a `StackTraceElement[]` instead of `void`. The current implementation just returns back the passed array after operating on each element. Are callers mandated to use the returned array for subsequent operations instead of the passed array?
It's just for convenience of use.
-------------
PR: https://git.openjdk.java.net/jdk/pull/8166
More information about the serviceability-dev
mailing list