'How to select certain objects from thread locals of the thread which ows top-N demoninators?

I would like to take advantage of OQL in Eclipse Memory Analyser to solve the following task:

  1. Select e.g. top-10 objects from denominator tree.
  2. For each such object resolve thread locals of the thread that owns that denominator (let's assume that denominators are not shared among threads).
  3. In thread locals locate recursively the objects of class org.eclipse.jetty.http.HttpField (HTTP response headers) which has _name equals to X-Frame-Options:
SELECT entry._value FROM INSTANCEOF org.eclipse.jetty.http.HttpField entry WHERE toString(entry._name) = "X-Frame-Options"
  1. Display denominator object info and the header value:
byte[380437984] @ 0x7be000000 | DENY

Any hint how to do it?

Step 2: Step 2

Step 3: Step 3



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source