Skip to content
This repository was archived by the owner on Feb 29, 2024. It is now read-only.

Commit 02f25a3

Browse files
author
mattwach
committed
Add Glob Data Visibility support to GCE environments.
------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=159846070
1 parent 5baa7be commit 02f25a3

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/agent/jvmti_globals.cc

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@
2727
#include "version.h"
2828

2929
#include "jvmti_agent.h"
30-
#include "structured_data_visibility_policy.h"
30+
#include "glob_data_visibility_policy.h"
31+
#include "yaml_data_visibility_config_reader.h"
3132

3233
#ifndef STANDALONE_BUILD
3334
#include "base/commandlineflags.h"
@@ -386,11 +387,10 @@ Agent_OnLoad(JavaVM* vm, char* options, void* reserved) {
386387
.Release(devtools::cdbg::ExceptionAction::LOG_AND_IGNORE);
387388
},
388389
[] (devtools::cdbg::ClassPathLookup* class_path_lookup) {
389-
// "InvisibleForDebugging" annotation not yet supported on open source
390-
// version of Java Cloud Debugger.
391390
return std::unique_ptr<devtools::cdbg::DataVisibilityPolicy>(
392-
new devtools::cdbg::StructuredDataVisibilityPolicy(
393-
devtools::cdbg::StructuredDataVisibilityPolicy::Config()));
391+
new devtools::cdbg::GlobDataVisibilityPolicy(
392+
devtools::cdbg::ReadYamlDataVisibilityConfiguration(
393+
class_path_lookup)));
394394
},
395395
true,
396396
true);

0 commit comments

Comments
 (0)