File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -225,6 +225,18 @@ void StoreHash(const v8::FunctionCallbackInfo<v8::Value> &args) {
225225 custom_labels_als_handle = Global<Object>(isolate, obj);
226226}
227227
228+ // parca-agent can't see the hash symbol on x86 if we don't have
229+ // this function that reads it.
230+ // Is the linker stripping it out due to lack of ever being read?
231+ // Not sure; FWIW `nm` *can* see it.
232+ //
233+ // TODO: Figure out why, so we can get rid of this.
234+ void GetStoredHash (const v8::FunctionCallbackInfo<v8::Value> &args) {
235+ Isolate *isolate = args.GetIsolate ();
236+ Local<v8::Integer> ret {v8::Integer::New (isolate, custom_labels_als_identity_hash)};
237+ args.GetReturnValue ().Set (ret);
238+ }
239+
228240#pragma GCC diagnostic push
229241#pragma GCC diagnostic ignored "-Wcast-function-type"
230242
Original file line number Diff line number Diff line change 11{
22 "name" : " @polarsignals/custom-labels" ,
3- "version" : " 0.3.1 " ,
3+ "version" : " 0.3.2 " ,
44 "description" : " test" ,
55 "main" : " js/index.js" ,
66 "scripts" : {
You can’t perform that action at this time.
0 commit comments