- 把 static SLOTS[32]+depth+current 封装进 Scope(绑采样作用域,不绑线程) - ThreadLocal<Scope> CURRENT_SCOPE 让每个线程指向自己的作用域 - 新增 enterScope/exitScope/unregisterScope/activeScopes 供多维度轴使用 - 热路径 enter*/exit 只做 ThreadLocal.get() + 字段读写,保持零分配 - 保留 claimSlot(Scope) 转发方法以兼容 PerfWorkTrackerAllocationTest - 未 activate/enterScope 的线程 fallback 到预创建 MAIN_SCOPE,永不 NPE/越界 根因:DR 让多维度线程并发 enter/exit 竞争 static depth++/--,导致 SLOTS[负] 越界。 本改动后每个作用域独立栈,消除竞态。PerfWorkTrackerAllocationTest 通过。
51 lines
2.6 KiB
Properties
51 lines
2.6 KiB
Properties
# Sets default memory used for gradle commands. Can be overridden by user or command line properties.
|
|
org.gradle.jvmargs=-Xmx2G
|
|
org.gradle.daemon=true
|
|
org.gradle.parallel=true
|
|
org.gradle.caching=true
|
|
org.gradle.configuration-cache=true
|
|
## Environment Properties
|
|
# You can find the latest versions here: https://projects.neoforged.net/neoforged/neoforge
|
|
# The Minecraft version must agree with the Neo version to get a valid artifact
|
|
minecraft_version=1.21.1
|
|
# The Minecraft version range can use any release version of Minecraft as bounds.
|
|
# Snapshots, pre-releases, and release candidates are not guaranteed to sort properly
|
|
# as they do not follow standard versioning conventions.
|
|
minecraft_version_range=[1.21.1,1.22)
|
|
# The Neo version must agree with the Minecraft version to get a valid artifact
|
|
neo_version=21.1.160
|
|
# The Neo version range can use any version of Neo as bounds
|
|
neo_version_range=[21,)
|
|
# The loader version range can only use the major version of FML as bounds
|
|
loader_version_range=[4,)
|
|
parchment_minecraft_version=1.21.1
|
|
parchment_mappings_version=2024.11.17
|
|
## Mod Properties
|
|
# The unique mod identifier for the mod. Must be lowercase in English locale. Must fit the regex [a-z][a-z0-9_]{1,63}
|
|
# Must match the String constant located in the main mod class annotated with @Mod.
|
|
mod_id=serverwarashi
|
|
# The human-readable display name for the mod.
|
|
mod_name=ServerWarashi
|
|
# The license of the mod. Review your options at https://choosealicense.com/. All Rights Reserved is the default.
|
|
mod_license=ARR
|
|
# The mod version. See https://semver.org/
|
|
mod_version=2.1.1.4
|
|
# The group ID for the mod. It is only important when publishing as an artifact to a Maven repository.
|
|
# This should match the base package used for the mod sources.
|
|
# See https://maven.apache.org/guides/mini/guide-naming-conventions.html
|
|
mod_group_id=com.moepus
|
|
# The authors of the mod. This is a simple text string that is used for display purposes in the mod list.
|
|
mod_authors=MoePus
|
|
# The description of the mod. This is a simple multiline text string that is used for display purposes in the mod list.
|
|
mod_description=
|
|
|
|
create_version = 6.0.6-98
|
|
ponder_version = 1.0.59
|
|
flywheel_version = 1.0.4
|
|
registrate_version = MC1.21-1.3.0+67
|
|
# Proxy settings for VPN / system proxy (VPN on)
|
|
systemProp.http.proxyHost=127.0.0.1
|
|
systemProp.http.proxyPort=7897
|
|
systemProp.https.proxyHost=127.0.0.1
|
|
systemProp.https.proxyPort=7897
|
|
systemProp.http.nonProxyHosts=localhost|127.*|192.168.*|10.*|172.16.*|172.17.*|172.18.*|172.19.*|172.20.*|172.21.*|172.22.*|172.23.*|172.24.*|172.25.*|172.26.*|172.27.*|172.28.*|172.29.*|172.30.*|172.31.* |