From: Dhruv Chawla <[email protected]>

Signed-off-by: Dhruv Chawla <[email protected]>

libitm/ChangeLog:

        * acinclude.m4: Fix typos.
        * dispatch.h (struct method_group): Likewise.
        * method-gl.cc: Likewise.
        * method-ml.cc: Likewise.
        * method-serial.cc: Likewise.
---
 libitm/acinclude.m4     | 2 +-
 libitm/dispatch.h       | 2 +-
 libitm/method-gl.cc     | 2 +-
 libitm/method-ml.cc     | 6 +++---
 libitm/method-serial.cc | 2 +-
 5 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/libitm/acinclude.m4 b/libitm/acinclude.m4
index 89f99099a06..0100ce2baff 100644
--- a/libitm/acinclude.m4
+++ b/libitm/acinclude.m4
@@ -345,7 +345,7 @@ if test x$enable_symvers = xsun ; then
     *)
       # Unlikely to work.
       AC_MSG_WARN([=== You have requested Sun symbol versioning, but])
-      AC_MSG_WARN([=== you are not targetting Solaris 2.])
+      AC_MSG_WARN([=== you are not targeting Solaris 2.])
       AC_MSG_WARN([=== Symbol versioning will be disabled.])
       enable_symvers=no
       ;;
diff --git a/libitm/dispatch.h b/libitm/dispatch.h
index ac7f31348b8..0689fd33164 100644
--- a/libitm/dispatch.h
+++ b/libitm/dispatch.h
@@ -247,7 +247,7 @@ struct method_group
   // Stop using any method from this group for now. This can be used to
   // destruct meta data as soon as this method group is not used anymore.
   virtual void fini() = 0;
-  // This can be overriden to implement more light-weight re-initialization.
+  // This can be overridden to implement more light-weight re-initialization.
   virtual void reinit()
   {
     fini();
diff --git a/libitm/method-gl.cc b/libitm/method-gl.cc
index df934157fd1..39b1acf4586 100644
--- a/libitm/method-gl.cc
+++ b/libitm/method-gl.cc
@@ -73,7 +73,7 @@ static gl_mg o_gl_mg;
 // privatization safety. This even holds if a writing transaction has the
 // lock bit set in its shared_state because this is fine for both the serial
 // lock (the value will be smaller than ~0) and privatization safety (we
-// validate that no other update transaction comitted before we acquired the
+// validate that no other update transaction committed before we acquired the
 // orec, so we have the most recent timestamp and no other transaction can
 // commit until we have committed).
 // However, we therefore depend on shared_state not being modified by the
diff --git a/libitm/method-ml.cc b/libitm/method-ml.cc
index 9424615bd71..10f11e4e459 100644
--- a/libitm/method-ml.cc
+++ b/libitm/method-ml.cc
@@ -280,7 +280,7 @@ protected:
     // validate sees.  However, the potential cache miss on global time is
     // probably a reasonable price to pay for avoiding unnecessary extensions
     // in the future.
-    // We need acquire memory oder because we have to synchronize with the
+    // We need acquire memory order because we have to synchronize with the
     // increment of global time by update transactions, whose lock
     // acquisitions we have to observe (also see trycommit()).
     gtm_word snapshot = o_ml_mg.time.load(memory_order_acquire);
@@ -489,8 +489,8 @@ public:
       return NO_RESTART;
 
     // Read the current time, which becomes our snapshot time.
-    // Use acquire memory oder so that we see the lock acquisitions by update
-    // transcations that incremented the global time (see trycommit()).
+    // Use acquire memory order so that we see the lock acquisitions by update
+    // transactions that incremented the global time (see trycommit()).
     gtm_word snapshot = o_ml_mg.time.load(memory_order_acquire);
     // Re-initialize method group on time overflow.
     if (snapshot >= o_ml_mg.TIME_MAX)
diff --git a/libitm/method-serial.cc b/libitm/method-serial.cc
index 5d21b50b858..f3ae2860bda 100644
--- a/libitm/method-serial.cc
+++ b/libitm/method-serial.cc
@@ -241,7 +241,7 @@ static htm_mg o_htm_mg;
 // We just need the subclass to associate it with the HTM method group that
 // sets up the HTM fast path.  This will use serial_dispatch as fallback for
 // transactions that might get canceled; it has a different method group, but
-// this is harmless for serial dispatchs because they never abort.
+// this is harmless for serial dispatches because they never abort.
 class htm_dispatch : public serialirr_dispatch
 {
  public:
-- 
2.43.0

Reply via email to