GithubHelp home page GithubHelp logo

nmldiegues / jvm-stm Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 0.0 15.09 MB

A Java Virtual Machine exposing a Transactional Memory construct to the programmer

License: Apache License 2.0

Groff 0.15% Shell 2.07% Perl 0.03% TeX 0.60% Java 87.57% C 6.38% HTML 1.56% Yacc 0.04% C++ 1.03% CSS 0.09% GAP 0.03% XSLT 0.32% JavaScript 0.01% Assembly 0.14%

jvm-stm's Introduction

Providing Transactional Semantics Instructions to install the modified Virtual Machine

The project should contain the following folders:

  • jamvm
  • tinySTM
  • classpath
  • tests

Inside classpath directory:

  • ./configure --without-x --disable-gtk-peer --disable-gconf-peer --disable-plugin --disable-tools --disable-examples
  • make clean
  • make
  • make install

There may be an error while compilling. Find the Makefile in that folder, search for AM_CFLAGS and add -fno-strict-aliasing

Inside the tinySTM directory:

  • Verify that the following configurations in the Makefile are as described:
  • DEFINES += -DDESIGN=WRITE_BACK_ETL (other two are disabled)
  • DEFINES += -DCM=CM_DELAY (other three are disabled)
  • DEFINES += -UIRREVOCABLE_ENABLED
  • DEFINES += -UNO_DUPLICATES_IN_RW_SETS
  • DEFINES += -DWAIT_YIELD
  • DEFINES += -UUSE_BLOOM_FILTER
  • DEFINES += -UEPOCH_GC
  • DEFINES += -UCONFLICT_TRACKING
  • DEFINES += -UREAD_LOCKED_DATA
  • DEFINES += -ULOCK_IDX_SWAP
  • All debugs are off
  • DEFINES += -DRW_SET_SIZE=4096000
  • CFLAGS += -fPIC
  • make clean
  • make

Inside the jamvm directory:

  • Inside lib folder: ln -s ../../tinySTM-1.0.0/lib/libstm.a libstm.a
  • Inside src folder: ln -s ../../tinySTM-1.0.0/include/stm.h stm.h
  • Inside src folder: ln -s ../../tinySTM-1.0.0/include/wrappers.h wrappers.h
  • ./configure
  • Modify the generated Makefile in src/: LIBS = -lz -ldl -lm -lpthread ../lib/libstm.a
  • Modify the generated Makefile in src/interp/: LIBS = -lz -ldl -lm -lpthread ../../lib/libstm.a
  • Modify the generated Makefile in src/interp/engine/: LIBS = -lz -ldl -lm -lpthread ../../../lib/libstm.a
  • make clean
  • make
  • make install

Inside the tests directory:

  • For each package tN in packages t1-t7, compile with javac tN/TestAll.java
  • For package t8, compile with javac t8/TestCounterTiny.java & javac -cp t8/build/jvstm.jar:. t8/TestCounterJVSTM.java
  • For package t9, compile with javac t9/TestTransfersTiny.java & javac -cp t8/build/jvstm.jar:. t9/TestTransfersJVSTM.java
  • For each package tN in packages t11-t13, compile with javac tN/Main.java
  • Run each of the compiled tests with the jamvm executable and the parameters required by the program.
  • Run again with a pristine version of the JamVM to compare the results, or remove the @Atomic annotations.

jvm-stm's People

Contributors

nmldiegues avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.