Skip to content

jerrinot/rohypnol

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Rohypnol

Feed your junit tests with rohypnol and reveal race conditions!

The idea is to use a Java-agent to insert randomized pauses into your code. This should reveal race-conditions.

Usage:

Start your JVM with -javaagent:<path>/rohypnol-1.0-SNAPSHOT-allinone.jar

Configration:

Currently hard-coded. It instruments only classes starting with com.hazelcast and parameters are in Constants

TODO:

  • Configurable strategy to select classes & methods to instrument.
  • Configurable {White/Black}list to feed the pill to selected threads only.
  • Multiple strategies to generate sleep duration. Currently it always uses uniform distribution.

Credits:

@Holmistr came-up with the idea. Implementation bugs are mine.

About

Rohypnol pills for your JVM

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages