-
Notifications
You must be signed in to change notification settings - Fork 37
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Wisp] Fix overwrite PERMITTED status in lazySet #63
[Wisp] Fix overwrite PERMITTED status in lazySet #63
Conversation
503198c
to
196f3f6
Compare
@@ -0,0 +1,62 @@ | |||
import java.util.concurrent.ScheduledThreadPoolExecutor; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Where is the jtreg annotations(@\summary,@\run)?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
jtreg test will run for one second.
svt mode will run forever
196f3f6
to
b69bf4c
Compare
b69bf4c
to
f1179a1
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks very good to me.
@@ -0,0 +1,114 @@ | |||
/* |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The license is not right - it needs to be as below, and the year should be 2021.
/*
* Copyright (c) 2021, Alibaba Group Holding Limited. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
Summary: In wisp1 we use direct scheduler wakeup instead of park/unpark for coroutine timed-waiting, so for historical reason exists a manual status fix to lazy set status to free. But in wisp2 when timer is waken up by unpark, a PERMITTED may be overwriten and cause problem. Test Plan: com/alibaba/rcm/ Reviewed-by: leiyu, zhengxiaolinX, sanhong.lsh Issue: dragonwell-project/dragonwell8#236
f1179a1
to
c49332b
Compare
Summary: - ThreadLocal Preempt Support coroutine preempt base on thread-local handshake rather than global safepoint. - Fix lost unpark in lazySet dragonwell-project/dragonwell8_jdk#63 - Add container info in jstack output https://github.com/alibaba/dragonwell8_hotspot/pull/96/files - Add support for thread ids in root container dragonwell-project/dragonwell8_jdk#62 Test Plan: wisp rcm tests Reviewers: lei.yul, sanhong.lsh Issue: https://aone.alibaba-inc.com/task/35465365 CR: https://code.aone.alibaba-inc.com/xcode/jdk11/codereview/5856676
Summary: - ThreadLocal Preempt Support coroutine preempt base on thread-local handshake rather than global safepoint. - Fix lost unpark in lazySet dragonwell-project/dragonwell8_jdk#63 - Add container info in jstack output https://github.com/alibaba/dragonwell8_hotspot/pull/96/files - Add support for thread ids in root container dragonwell-project/dragonwell8_jdk#62 Test Plan: wisp rcm tests Reviewers: lei.yul, sanhong.lsh Issue: https://aone.alibaba-inc.com/task/35465365 CR: https://code.aone.alibaba-inc.com/xcode/jdk11/codereview/5856676
Summary: - ThreadLocal Preempt Support coroutine preempt base on thread-local handshake rather than global safepoint. - Fix lost unpark in lazySet dragonwell-project/dragonwell8_jdk#63 - Add container info in jstack output https://github.com/alibaba/dragonwell8_hotspot/pull/96/files - Add support for thread ids in root container dragonwell-project/dragonwell8_jdk#62 Test Plan: wisp rcm tests Reviewers: lei.yul, sanhong.lsh Issue: https://aone.alibaba-inc.com/task/35465365 CR: https://code.aone.alibaba-inc.com/xcode/jdk11/codereview/5856676
Summary: - ThreadLocal Preempt Support coroutine preempt base on thread-local handshake rather than global safepoint. - Fix lost unpark in lazySet dragonwell-project/dragonwell8_jdk#63 - Add container info in jstack output https://github.com/alibaba/dragonwell8_hotspot/pull/96/files - Add support for thread ids in root container dragonwell-project/dragonwell8_jdk#62 Test Plan: wisp rcm tests
Summary: - ThreadLocal Preempt Support coroutine preempt base on thread-local handshake rather than global safepoint. - Fix lost unpark in lazySet dragonwell-project/dragonwell8_jdk#63 - Add container info in jstack output https://github.com/alibaba/dragonwell8_hotspot/pull/96/files - Add support for thread ids in root container dragonwell-project/dragonwell8_jdk#62 Test Plan: wisp rcm tests Reviewed-by: yulei Issue: dragonwell-project#144
Summary: - ThreadLocal Preempt Support coroutine preempt base on thread-local handshake rather than global safepoint. - Fix lost unpark in lazySet dragonwell-project/dragonwell8_jdk#63 - Add container info in jstack output https://github.com/alibaba/dragonwell8_hotspot/pull/96/files - Add support for thread ids in root container dragonwell-project/dragonwell8_jdk#62 Test Plan: wisp rcm tests Reviewed-by: yulei Issue: #144
Summary: In wisp1 we use direct scheduler wakeup instead
of park/unpark for coroutine timed-waiting, so for historical
reason exists a manual status fix to lazy set status to free.
But in wisp2 when timer is waken up by unpark, a PERMITTED
may be overwriten and cause problem.
Test Plan: com/alibaba/rcm/
Reviewed-by: leiyu, zhengxiaolinX, sanhong.lsh
Issue: dragonwell-project/dragonwell8#236