提交 0834cf41 编写于 作者: C Chuansheng Lu 提交者: Jonathan Lu

[MultiTenant] Added new flag -XX:+TenantDataIsolation

Summary: added new flag -XX:+TenantDataIsolation

Test Plan: jdk/test/multi-tenant

Reviewed-by: yuleil, superajun-wsj

Issue: https://github.com/alibaba/dragonwell8/issues/84
上级 bfce3aad
......@@ -30,6 +30,7 @@
#define TENANT_FLAG_MULTI_TENANT_ENABLED (0x1) // bit 0 to indicate if the tenant feature is enabled.
#define TENANT_FLAG_HEAP_THROTTLING_ENABLED (0x2) // bit 1 to indicate if heap throttling feature is enabled.
#define TENANT_FLAG_CPU_THROTTLING_ENABLED (0x4) // bit 2 to indicate if cpu throttling feature is enabled.
#define TENANT_FLAG_DATA_ISOLATION_ENABLED (0x8) // bit 3 to indicate if data isolation(e.g static vairable isolation) feature is enabled.
#define TENANT_FLAG_CPU_ACCOUNTING_ENABLED (0x40) // bit 6 to indicate if cpu accounting feature is enabled.
#define TENANT_FLAG_HEAP_ISOLATION_ENABLED (0x80) // bit 7 to indicate if heap isolation feature is enabled.
......@@ -69,5 +70,9 @@ tenant_GetTenantFlags(TenantEnv *env, jclass cls)
result |= TENANT_FLAG_CPU_ACCOUNTING_ENABLED;
}
if (TenantDataIsolation) {
result |= TENANT_FLAG_DATA_ISOLATION_ENABLED;
}
return result;
}
......@@ -111,7 +111,9 @@
\
product(bool, TenantCpuAccounting, false, \
"Enable cpu accounting per tenant") \
\
product(bool, TenantDataIsolation, false, \
"Enable data isolation(e.g static vairable) per tenant") \
//add new AJVM specific flags here
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册