Inclusion Criteria:  Life expectancy ≥ 3 months. Eastern Cooperative Oncology Group (ECOG) 0-1. Corrected QT interval (QTcB or QTcF ) ≤ 450ms (male), or ≤ 470ms (female). Patients with relapsed/refractory NHL in Part 1 (excluding Burkitt's lymphoma, lymphoblastic lymphoma, chronic lymphocytic leukemia/small lymphocytic lymphoma or primary central nervous system lymphoma) and relapsed/refractory PTCL in Part 2, previously treated with at least 1 prior line of therapy. Patients must have an adequate bone marrow function. Adequate hepatic, renal and coagulation function. Male and female subjects of childbearing potential who agree to use highly effective methods of birth control during the period of therapy and for 90 days after the last dose of study drug. Ability to understand and voluntarily sign a written informed consent form before performing any study procedures. Compliance to study procedures.  Exclusion Criteria:  Prior history of allogeneic cell transplant, adoptive cellular immunotherapy within 2 years, or autologous hematopoietic stem cell transplantation within 6 months prior to the first dose. Monoclonal antibody therapy within 4 weeks prior to the first dose. Received anti-cancer therapy within 14 days prior to the first dose of therapy, including chemotherapy, radiotherapy, immunotherapy or hormone therapy for anti-tumor purposes; or 28 days for any investigational agent prior to the first dose of therapy. Continuance of toxicities due to prior radiotherapy or chemotherapy agents that do not recover to ≤ Grade 1 except alopecia or neuropathy. Not recovered from recent surgical procedures based on investigator's discretion. Major surgical procedure within ≤28 days or minor surgical procedure (excluding biopsy) within ≤14 days prior to initiating study treatment. Prior exposure to BCL-xL inhibitor. Subjects who have been treated with chidamide can still be included in the study unless they were intolerant. Intolerant to other Bcl-2 family protein inhibitors. Has known central nervous system (CNS) involvement or the prior history of primary central nervous system lymphoma. Prior history of cardiovascular disease ≥ grade 2 (New York Heart Association grade 2 cardiovascular disease is defined as that the patient feels comfortable at rest, but ordinary physical activities lead to fatigue, palpitation, dyspnea or angina pectoris). Unstable angina, myocardial infarction, or coronary revascularization within 180 days prior to the first dose. Use of therapeutic doses of anti-coagulants is an exclusion, including anti-platelet agents. Use of low-dose anticoagulation medications to maintain the patency of a central intravenous catheter is permitted. Aspirin taken within 1 week before the first dose is an exclusion. Known bleeding diathesis/disorder. Recent history of non-chemotherapy induced thrombocytopenia associated a major bleeding episode or a history of being refractory to platelet transfusions within 1 year prior to the first dose. Gastrointestinal bleeding or active peptic ulceration within 3 months prior to the first dose. Active immune thrombocytopenic purpura (ITP), active autoimmune hemolytic anemia (AIHA). A potentially bleeding condition or the presence of clinically significant bleeding signs. Known to be allergic to the drug component or its analogues. Pregnancy or lactation, or pregnancy is expected during the study period or within 3 months after the last administration of treatment. Within 3 years before entering the study, the subject had a history of active malignant tumors other than NHL, except that: Fully treated cervical carcinoma in situ; Completely resected basal cell carcinoma of the skin or localized squamous cell carcinoma of the skin; Confinement and resection of previously cured malignancies (or other treatment). Uncontrolled systemic infections (viruses, bacteria, or fungi), including but not limited to Covid-19 RNA positive, HBV-SURFACE antigen positive and HBV-DNA≥2,000 copies/mL or ≥500 IU/ mL; Hepatitis C virus (HCV) antibody positive; human immunodeficiency virus (HIV) antibody positive. A significant history of renal, neurological, psychiatric, pulmonary, endocrine, metabolic, immune, cardiovascular or liver disease. The investigator believes that participating in this study will have an adverse effect on him / her. Uncontrolled other clinically significant symptoms, including but not limited to uncontrolled serious infection, febrile neutropenia occured within 1 week before administration. Symptomatic congestive heart failure, unstable angina, arrhythmia, or social environment that may affect study compliance. Any other condition or circumstance that would, in the opinion of the investigator, make the patient unsuitable for participation in the study.