Attached files

file filename
EX-32.2 - EX-32.2 - Oaktree Specialty Lending Corpocsl-ex322_09302020x10xk.htm
EX-31.2 - EX-31.2 - Oaktree Specialty Lending Corpocsl-ex312_09302020x10xk.htm
EX-4.6 - EX-4.6 - Oaktree Specialty Lending Corpexhibit46-descriptiono.htm
EX-32.1 - EX-32.1 - Oaktree Specialty Lending Corpocsl-ex321_09302020x10xk.htm
EX-31.1 - EX-31.1 - Oaktree Specialty Lending Corpocsl-ex311_09302020x10xk.htm
EX-14.1 - EX-14.1 - Oaktree Specialty Lending Corpexhibit141-appendixaxc.htm
10-K - 10-K - Oaktree Specialty Lending Corpocsl-09302020x10xk.htm
Exhibit 23.1
Consent of Independent Registered Public Accounting Firm

We consent to the incorporation by reference in the Registration Statement (Form N-2 No. 333-234798) of Oaktree Specialty Lending Corporation and in the related Prospectus of our reports dated November 18, 2020, with respect to the consolidated financial statements of Oaktree Specialty Lending Corporation, and the effectiveness of internal control over financial reporting of Oaktree Specialty Lending Corporation, included in this Annual Report (Form 10-K) for the year ended September 30, 2020.

/s/ Ernst & Young LLP

Los Angeles, CA
November 18, 2020