Skip to content

Instantly share code, notes, and snippets.

|----------------------------------------------------------------------------------------|--------------------|
| Object Header (64 bits) | State |
|-------------------------------------------------------|--------------------------------|--------------------|
| Mark Word (32 bits) | Klass Word (32 bits) | |
|-------------------------------------------------------|--------------------------------|--------------------|
| identity_hashcode:25 | age:4 | biased_lock:1 | lock:2 | OOP to metadata object | Normal |
|-------------------------------------------------------|--------------------------------|--------------------|
| thread:23 | epoch:2 | age:4 | biased_lock:1 | lock:2 | OOP to metadata object | Biased |
|-------------------------------------------------------|--------------------------------|--------------------|
|
#!/usr/bin/env awk -f
# Based on the idea from https://blogs.oracle.com/taylor22/entry/using_r_to_analyze_g1gc, the
# script is updated to use the format of the gc logs as received with the parameters:
# -XX:+UseThreadPriorities
# -XX:ThreadPriorityPolicy=42
# -Xms1995M -Xmx1995M
# -Xss256k -XX:StringTableSize=1000003
# -XX:SurvivorRatio=8
# -XX:MaxTenuringThreshold=1
@csyangchsh
csyangchsh / clearVar.java
Created August 16, 2012 03:39
Clear "where" bind variable in search region
/*
Bind variables in ADF view object
1. Kind = "viewcriteria"
used in view criteria
2. Kind = "where"
in where clause of query
If it's marked as required, when add query component in page, there will be a search field for the variable. During runtime, if you click 'Reset' button, this field can't be cleared.
We can implement a custom queryOperationListener in backing bean and bind it to query component.